/* 命名空间：防止不同模块下的变量、函数、接口、类...与其它模块形成命名冲突 */
namespace Film {
   export class Person {
      constructor(public name: string) {}
      act() {
         console.log(this.name, "act");
      }
   }
}

namespace User {
   export class Person {
      constructor(public useraname: string, public password?: string) {}
      login() {
         console.log(this.useraname, "login");
      }
   }
}

new Film.Person("李荣浩").act();
new User.Person("admin").login();
